package com.vimi8.ebb.api.geo;



import com.vimi8.ebb.model.GeoCodings;
import io.swagger.annotations.*;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringCodegen", date = "2016-09-18T01:39:25.066Z")

@Api(value = "geo", description = "the geo API")
public interface GeoApi {


    @ApiOperation(value = "根据id和lever查当前id的下一级", notes = "查当前id的下一级.", response = GeoCodings.class, responseContainer = "List", tags={ "地址相关信息", })
    @ApiResponses(value = { 
        @ApiResponse(code = 200, message = "成功,对象列表", response = GeoCodings.class),
        @ApiResponse(code = 200, message = "失败,返回消息", response = GeoCodings.class) })
    @RequestMapping(value = "/geo/",
        method = RequestMethod.GET)
    ResponseEntity<List<GeoCodings>> getGeoCodingsGET(@ApiParam(value = "地址代码", required = true) @RequestParam(value = "addressCode", required = true) String addressCode



    );

    @ApiOperation(value = "根据id查询地址全称", notes = "根据id查询地址全称.", response = String.class, tags={ "地址相关信息", })
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "成功,对象列表", response = GeoCodings.class),
            @ApiResponse(code = 200, message = "失败,返回消息", response = GeoCodings.class) })
    @RequestMapping(value = "/geo/address",
            method = RequestMethod.GET)
    ResponseEntity<String> getAddressWhole(
            @ApiParam(value = "地址代码", required = true) @RequestParam(value = "addressCode", required = true) String addressCode
    );

}
